export const getters = {
  getConversations: _state => _state.conversations,
  getCurrentConversationId: _state => _state.currentConversationId
}

export const getSelectedChatConversation = ({
  allConversations,
  selectedChatId
}) =>
  allConversations.filter(conversation => conversation.id === selectedChatId)
